<?php

namespace app\admin\model\mu\role;

use think\Model;

/**
 * Store
 */
class Store extends Model
{
    // 表名
    protected $name = 'mu_role_store';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function muSetArea()
    {
        return $this->belongsTo(\app\admin\model\mu\set\Area::class, 'area_id', 'id');
    }

    public function user()
    {
        return $this->belongsTo(\app\admin\model\User::class, 'user_id', 'id');
    }

    public function muSetItem()
    {
        return $this->belongsTo(\app\admin\model\mu\set\Item::class, 'item_id', 'id');
    }
}